package la.bbs558.strategy.base;

import org.springframework.beans.factory.InitializingBean;

/**
 * @Classname Strategy
 * @Description 策略抽象类
 * @Date 2023/2/22 10:09
 * @Created by weihanmin
 */
public abstract class AbstractStrategy<T extends StrategyContext> implements Strategy<T>, InitializingBean {
    @Override
    final public void afterPropertiesSet() {
        StrategyFactory.strategyMap.put(getStrategyEnum(), this);
    }
}
